page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* 自定义导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  width: 750rpx;
  color: #000;
  // background-color: #f8f8f8;
  background-color: transparent;

  .wrap {
    position: relative;

    .title {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 44px;
      font-size: 32rpx;
      // color: #000;
      color: transparent;
    }

    .back {
      position: absolute;
      left: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      font-size: 44rpx;
      // color: #000;
      color: #fff;
    }
  }
}

.viewport {
  background-color: #f7f7f8;
}

/* 订单状态 */
.overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 30rpx;
  color: #fff;
  line-height: 1;
  background-image: url(https://pcapi-xiaotuxian-front-devtest.itheima.net/miniapp/images/order_bg.png);
  background-size: cover;

  .status {
    font-size: 36rpx;
  }

  .status::before {
    margin-right: 6rpx;
    font-weight: 500;
  }

  .tips {
    display: flex;
    align-items: center;
    margin: 30rpx 0;
    font-size: 14px;

    .money {
      margin-right: 30rpx;
    }
  }

  .button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30rpx;
  }

  .button {
    margin: 0 10rpx;
    width: 260rpx;
    height: 64rpx;
    font-size: 28rpx;
    color: #27ba9b;
    text-align: center;
    line-height: 64rpx;
    border-radius: 68rpx;
    background-color: #fff;
  }
}

/* 配送状态 */
.shipment {
  margin: 20rpx 20rpx 0;
  padding: 0 20rpx;
  line-height: 1.4;
  border-radius: 10rpx;
  background-color: #fff;

  .locate,
  .item {
    padding: 30rpx 30rpx 25rpx 75rpx;
    min-height: 120rpx;
    background-size: 50rpx;
    background-position: 6rpx center;
    background-repeat: no-repeat;
  }

  .locate {
    background-image: url(https://pcapi-xiaotuxian-front-devtest.itheima.net/miniapp/images/locate.png);

    .user {
      font-size: 26rpx;
      color: #444;
    }

    .address {
      font-size: 24rpx;
      color: #666;
    }
  }

  .item {
    position: relative;
    border-bottom: 1rpx solid #eee;
    background-image: url(https://pcapi-xiaotuxian-front-devtest.itheima.net/miniapp/images/car.png);

    .message {
      font-size: 26rpx;
      color: #444;
    }

    .date {
      font-size: 24rpx;
      color: #666;
    }
  }
}

/* 商品信息 */
.goods {
  margin: 20rpx 20rpx 0;
  padding: 0 20rpx;
  border-radius: 10rpx;
  background-color: #fff;

  .item {
    padding: 30rpx 0;
    border-bottom: 1rpx solid #eee;

    .navigator {
      display: flex;
      margin: 20rpx 0;
    }

    .cover {
      width: 170rpx;
      height: 170rpx;
      border-radius: 10rpx;
    }

    .meta {
      position: relative;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      margin-left: 20rpx;
    }

    .name {
      // height: 80rpx;
      font-size: 26rpx;
      color: #444;
    }

    .attrsText {
      position: absolute;
      top: 40rpx;
      left: 0;
      padding: 0 15rpx;
      font-size: 24rpx;
      color: #888;
      line-height: 1.6;
      border-radius: 4rpx;
      background-color: #f7f7f8;
    }

    .price {
      display: flex;
      margin-top: 6rpx;
      font-size: 24rpx;
    }

    .symbol {
      font-size: 20rpx;
    }

    .actual {
      margin-left: 10rpx;
      color: #444;
    }

    .original {
      color: #999;
      text-decoration: line-through;
    }

    .text {
      font-size: 22rpx;
    }

    .quantity {
      position: absolute;
      bottom: 0;
      right: 0;
      font-size: 24rpx;
      color: #444;
    }

    .action {
      display: flex;
      flex-direction: row-reverse;
      justify-content: flex-start;
      padding: 30rpx 0 0;

      .button {
        justify-content: center;
        margin-left: 20rpx;
        width: 200rpx;
        height: 60rpx;
        font-size: 26rpx;
        color: #444;
        text-align: center;
        line-height: 60rpx;
        border-radius: 60rpx;
        border: 1rpx solid #ccc;
      }

      .primary {
        color: #27ba9b;
        border-color: #27ba9b;
      }
    }
  }

  .total {
    padding: 20rpx 0;
    font-size: 26rpx;
    color: #666;
    line-height: 1;

    .row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10rpx 0;
    }

    .symbol::before {
      margin-right: 3rpx;
      content: '¥';
      font-size: 80%;
    }

    .primary {
      font-size: 36rpx;
      color: #cf4444;
    }
  }
}

/* 订单信息 */
.detail {
  margin: 20rpx 20rpx 0;
  padding: 30rpx 20rpx 0;
  font-size: 26rpx;
  color: #666;
  line-height: 1;
  border-radius: 10rpx;
  background-color: #fff;

  .title {
    font-size: 30rpx;
    color: #444;
  }

  .row {
    padding: 20rpx 0;

    .item {
      display: flex;
      align-items: center;
      padding: 10rpx 0;
    }

    .copy {
      margin-left: 10rpx;
      padding: 5rpx 10rpx;
      font-size: 20rpx;
      border: 1px solid #ccc;
      border-radius: 20rpx;
    }
  }
}

/* 底部占位空盒子 */
.toolbar-height {
  box-sizing: content-box;
  height: 100rpx;
}

/* 底部工具栏 */
.toolbar {
  box-sizing: content-box;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  padding: 0 20rpx var(--window-bottom);
  height: 100rpx;
  border-top: 1rpx solid #ededed;
  background-color: #fff;

  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15rpx;
    width: 200rpx;
    height: 72rpx;
    font-size: 26rpx;
    color: #444;
    border-radius: 72rpx;
    border: 1rpx solid #ccc;
  }

  .delete {
    order: 4;
    color: #cf4444;
    border-color: #cf4444;
  }

  .button {
    order: 3;
  }

  .secondary {
    order: 2;
    color: #27ba9b;
    border-color: #27ba9b;
  }

  .primary {
    order: 1;
    color: #fff;
    background-color: #27ba9b;
  }
}

/* 取消订单弹窗 */
.popup-root {
  padding: 30rpx 30rpx 0;
  border-radius: 10rpx 10rpx 0 0;
  overflow: hidden;

  .title {
    margin-bottom: 30rpx;
    font-size: 30rpx;
    text-align: center;
  }

  .description {
    padding: 0 20rpx;
    font-size: 28rpx;

    .tips {
      margin-bottom: 12rpx;
      color: #444;
    }

    .cell {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15rpx 0;
      color: #666;
    }

    .icon::before {
      content: '\e6cd';
      font-family: 'erabbit' !important;
      font-size: 38rpx;
      color: #999;
    }

    .icon.checked::before {
      content: '\e6cc';
      font-size: 38rpx;
      color: #27ba9b;
    }
  }

  .footer {
    display: flex;
    justify-content: space-between;
    padding: 30rpx 0 40rpx;
    font-size: 28rpx;
    color: #444;

    .button {
      flex: 1;
      margin: 0 20rpx;
      height: 72rpx;
      color: #444;
      text-align: center;
      line-height: 72rpx;
      border-radius: 72rpx;
      border: 1rpx solid #ccc;
    }

    .primary {
      color: #fff;
      background-color: #27ba9b;
      border: none;
    }
  }
}
